using IM.Easy.Infrastructure.Query;
using System.ComponentModel.DataAnnotations;


namespace IM.Easy.SystemServices.Dtos
{
    /// <summary>
    /// 账户安全表查询实体
    /// </summary>
    public class SysAccountSecurityQueryDto : QueryBase
    {
    }

    /// <summary>
    /// 账户安全表dto
    /// </summary>
    public class SysAccountSecurityDto
    {
        /// <summary>
        /// 主键KEY
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FailedAttempts { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public byte IsLocked { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime LockedAt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime LastLoginAt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime LastFailedAt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string LastLoginIp { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime AutoUnlockAt { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public long CreatedBy { get; set; }
        /// <summary>
        /// 最后更新人
        /// </summary>
        public long UpdatedBy { get; set; }
        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime UpdatedAt { get; set; }
        /// <summary>
        /// 删除状态
        /// </summary>
        public byte IsDeleted { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public long DeletedBy { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime DeletedAt { get; set; }
    }
}
